package com.hyt.it.ogt.kq.service.gov.service.impl;

import com.hyt.core.base.BaseServiceImpl;
import com.hyt.it.ogt.kq.service.gov.mapper.AgreementMapper;
import com.hyt.it.ogt.kq.service.gov.model.entity.Agreement;
import com.hyt.it.ogt.kq.service.gov.model.vo.agreement.AgreementVO;
import com.hyt.it.ogt.kq.service.gov.service.IAgreementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 数据字典信息表 服务实现类
 * </p>
 *
 * @author huangyh
 * @since 2021-03-08
 */
@Service
public class AgreementServiceImpl extends BaseServiceImpl<AgreementMapper, Agreement> implements IAgreementService {

    @Resource
    private AgreementMapper agreementMapper;

    @Override
    public List<AgreementVO> getAgreementByTaskId(String taskId) {
        return baseMapper.getAgreementByTaskId(taskId);
    }

    @Override
    public void copyAgreement(String oldTaskId, String newTaskId, String userName) {
        agreementMapper.copyAgreement(oldTaskId, newTaskId, userName);
    }

}
